﻿#region

using System.Collections.Generic;
using System.IO;
using OMS.Ice.T4Generator;

#endregion


namespace OMS.Ice.Test
{
    internal class Program
    {
        private static void Main( string[] args )
        {
            IGenerator generator = new Generator();

            generator.Settings.Options.Add( "CompilerVersion", "v4.0" );

            var ms = new MemoryStream();
            var textWriter = new StreamWriter( ms );


            generator.Generate(@"F:\Projects\Private\OMS.Ice\trunk\Source\OMS.Ice.Test\Test.tt", textWriter, 6);

            ms.Seek( 0, SeekOrigin.Begin );
            var textReader = new StreamReader( ms );

            var text = textReader.ReadToEnd();
        }
    }
}